<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ItemStage extends Model
{
    protected $table = 'item_stage';

    /**
     * 有效
     *
     * @param $query
     *
     * @return mixed
     */
    public function scopeValid($query)
    {
        return $query->where('is_valid', 1);
    }
}
